{% extends "learning_logs/base.html" %}

{% block header %}
    <h2>{{ user.username}} 的所有话题 </h2>
{% endblock header %}

{% block content %}
    <h1>主题列表</h1>
    {% for topic in topics %}
        <li>
            <a href="{% url 'learning_logs:topic' topic.id %}">{{topic.text}}</a>
        </li>
    {% empty %}
        <span>{{ msg }}</span>
    {% endfor %}
  
    <h3><a href="{% url 'learning_logs:new_topic' %}" >添加主题</a></h3>
{% endblock content %}